﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace LostHobbits.Scene.WorldObjects
{
    public class WorldObject : ISceneObject
    {
        private string alias = "Gimli2";
        public Vector2 Position
        {
            get;
            set;
        }

        public void Update(GameTime gameTime, Sound.ISoundService sound)
        {
            
        }

        public void BuildRenderAssembly(List<Render.RenderManager.RendationInfo> toRender, Vector2 parentPos)
        {
            Render.RenderManager.RendationInfo tmp = new Render.RenderManager.RendationInfo();
            tmp.alias = alias;
            tmp.location = new Vector2(10, 10) + parentPos;
            tmp.rotation = 0f;
            tmp.tint = Color.White;
            toRender.Add(tmp);
        }

        public void Load(Render.IRenderService renderer, Sound.ISoundService sound)
        {
            renderer.LoadSprite(alias);
        }
    }
}
